home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / hardware-part2 / 10464 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: yama.mcc.ac.uk!usenet
  2. From: Christos Dimitrakakis <mbge4cd1@fs1.ee.man.ac.uk>
  3. Newsgroups: comp.sys.amiga.hardware,comp.sys.amiga.programmer
  4. Subject: AUDIO INTERRUPTS!
  5. Date: Wed, 17 Apr 1996 13:25:19 +0100
  6. Organization: Sirius Cybernetics Corporation
  7. Message-ID: <3174E32F.3490@fs1.ee.man.ac.uk>
  8. References: <4kdrpj$kvf@svin09.win.tue.nl> <1137.6674T1301T2851@lando.demon.co.uk> <4klthn$3rrb@trout.ab.umd.edu>
  9. NNTP-Posting-Host: meehph.ee.man.ac.uk
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.01 (X11; I; HP-UX A.09.03 9000/715)
  14.  
  15. Hi.
  16. I have recently tried to create some real-time sound effects,
  17. (getting data from the parallel port and outputting to the sound chip)
  18. but I run into several problems.
  19.  
  20. 1) I need to send data to the audio chip directly from the CPU.
  21. The hardware manual does not have an example about how to do this,
  22. and furthermore it does not state in where exactly the bytes are
  23. placed in the AUDxDAT registers.
  24. If you look at the register index, each AUDxDAT register
  25. occupies 6 memory locations. Where am I supposed to place data?
  26. Which address? Which part of each long word?
  27. 2)Interrupts
  28. I did this after enabling the interrupts,
  29. disabling audio DMA and specifying a volume for channel x:
  30.  
  31.     I. Send to AUDxDAT lower address (each byte stored in the LSBs of the
  32. first 2 words)
  33.     II. Wait for the interrupt
  34.     III. Clear interrupt.
  35.     IV. Go back to I.
  36. But it did not work...
  37. Somebody could help, either with a detailed explanation or
  38. a working example (preferrably in assembly)
  39.  
  40. Thanks in advance,
  41.     Christos
  42.